package com.windy.kafka.trace.annotation;


import com.windy.kafka.trace.config.MessageSendConfigurationSelector;
import org.springframework.context.annotation.AdviceMode;
import org.springframework.context.annotation.Import;
import org.springframework.core.Ordered;

import java.lang.annotation.*;

/**
 * Created by liyufeng on 2022/3/22
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(MessageSendConfigurationSelector.class)
public @interface EnableMQ {

    AdviceMode mode() default AdviceMode.PROXY;

    boolean proxyTargetClass() default false;

    int order() default Ordered.LOWEST_PRECEDENCE;

    Class<? extends Annotation> annotation() default Annotation.class;

}
